<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Dona Jerdona: {$title}</title>
	<meta name="Keywords" content="{$keywords}" />
	<meta name="Description" content="{$descr}" />
	<link href="/css/all.css" type="text/css" rel="stylesheet" />
	<script type="text/javascript" src="/cf/js/jquery.min.js"></script>
	<script type="text/javascript" src="/js/gallery.js"></script>
	<script type="text/javascript" src="/js/main.js"></script>
	<!--[if lt IE 8]><link rel="stylesheet" type="text/css" href="/css/ie.css" media="screen"/><![endif]-->
	<script type="text/javascript" src="/cf/js/cart.js"></script>
	<script id="rhlpscrtg" type="text/javascript" charset="utf-8" async="async" src="https://web.redhelper.ru/service/main.js?c=donajerdona"></script>
	{literal}
	<script type="text/javascript">
    jQuery(document).ready(function() {

		/*@  string  emailAddress*/
		function isValidEmailAddress(emailAddress) {
		var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
	    return pattern.test(emailAddress);
	 	
		}

		jQuery('#user_mail').focus(function(){
			var emailObject = jQuery('#user_mail'); 
			if (emailObject.val() == 'Введите корректный e-mail') {emailObject.val('')};
			emailObject.css({'border-color':'#eeeeee'});
		});

		jQuery('#download_button').click(function(){
			var emailObject = jQuery('#user_mail'); 
			var mailInput = emailObject.val();
			var fileName = jQuery('#fileIdent').val();

			if (!isValidEmailAddress(mailInput)){

				emailObject.css({'border-color':'#cc0000'});
				emailObject.val('Введите корректный e-mail');
				return false;

			};
			jQuery.ajax({
				data:'form_email=' + mailInput + '&filename=' + fileName ,
				type:'POST',
				url:'/cf/FileDownloadMail.php',
			});
			emailObject.css({'border-color':'#eeeeee'});
			return true;
		});

	});
	</script>
	{/literal}
	<!--галерея-->
		<!--script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script-->
		<script type="text/javascript" src="/js/picbox.js"></script>
		<link rel="stylesheet" href="/css/picbox.css" type="text/css" media="screen" />
		<!--end-->
	<link rel="icon" href="/favicon3.ico" type="image/x-icon" />
	<link rel="shortcut icon" href="/favicon3.ico" type="image/x-icon" />
  </head>
  <body>
	<div id='errorBox' class='round-corners'>
	  <div>{$show_error}</div>
	  <div style='text-align:right;'>
		<button class='btn' onclick="$('#errorBox').hide();">Закрыть</button>
	  </div>
	</div>

	<div id="wrapper">
	  <div class="w1">
		<div class="w2">
		  <div class="wrapper-holder">
			<div id="header">
			  <div class="bar">
				<div class="phones">
				  <dl>
					<dt>+7 (495) </dt>
					<dd>726-01-99</dd>
				  </dl>
				</div>
				<ul class="bar-list">
<!--				  <li><a href="/partneram">Партнерам</a></li> -->
				  <li><a href="/cooperation">Сотрудничество</a></li>
				  <li><a href="/representatives">Наши представители</a></li>
				  <li><a href="/price">Прайс-лист</a></li>
				  <li><a href="/company">О Компании</a></li>
				</ul>
				<ul class="private-office">
				  {if $user}
				  <li><a href="/personal" class="lock">Личный кабинет</a></li>
				  <li><a href="/logout">Выйти</a></li>
				  {else}
				  <li id='start_login' style="position:relative;">
					<a href="#" class="lock">Вход</a>
					<div id='login' class='round-corners'>
					  <form method=post>
						Логин: <input type=text name='log' /><br/>
						Пароль: <input type=password name='pwd' /><br/>
						<input type=checkbox name=remember /> Запомнить
						<div>
						  <button type=submit class='btn'>Войти</button>
						</div>
					  </form>
					</div>
				  </li>
				  <li><a href="/register">Регистрация</a></li>
				  {/if}
				</ul>
			  </div>
			  <div class="panel">
				<strong class="logo"><a href="/">Dona Jerdona</a></strong>
				<form action="/search" class="search-form">
				  <fieldset>
					<div class="text">
					  <input type=text name='find' value='{$find}' />
					</div>
					<input type="submit" class="submit" value="ПОИСК" />
				  </fieldset>
				</form>
				<div class="basket-box">
				  <a href="/cart" class="basket">Корзина</a>
				  <div class="basket-l">
					<a href='/cart'>
					  <div class="basket-r">
						<strong><span>0</span> товаров - <span>0</span> рублей</strong>
						<a href="#" class="link">Link</a>
					  </div>
					</a>
				  </div>
				  <div id='cartProducts'></div>
				</div>
			  </div>

			  <div class="nav-holder">
				<ul id="nav">
				  <li class="home"><a href="/">Home</a></li>
				  {foreach $categories as $cat}
				  <li>
					<a href="{$cat.path}" id='main_cat_{$cat.id}'>{$cat.name}</a>
					{if $cat.children}
					{include 'menu_drop.tpl' categories=$cat.children rootId=$cat.id}
					{/if}
					<script>
						$(function(){
							$('#main_cat_{$cat.id}').mouseover(function(){
								showCatInfo(
									{$cat.id},
									'{if $cat.image}{thumbnail width=100 height=100}{$cat.image}{/thumbnail}{/if}',
									'{$cat.path}',
									'{$cat.name|escape}',
									'{$cat.short_descr|strip_tags|regex_replace:"/[\r\n]/":" "|escape:javascript}'
								);
							});
						});
					</script>
				  </li>
				  {/foreach}
				</ul>
			  </div>

			  <div class="add-nav-holder uuut">
				<ul class="add-nav">
				  <li><a href="http://www.donajerdona.ru/actions" class="dona_jerdona"></a></li>
				  <li><a href="http://www.donajerdona.ru/dealers" class="lili_cosmetics"></a></li>
				  <li><a href="/cursy" class="consultant">Обучение</a></li>
				  <li><a href="/delivery" class="delivery">Доставка</a></li>
				  <li><a href="/pay" class="payment">Способы оплаты</a></li>
				  <li><a href="/contacts" class="contacts">Контакты</a></li>
				</ul>
			  </div>

			</div>
			<div id="main">


			  <div class="breadcrumbs">
				<ul>
				  <li><a href="/">Главная</a></li>
				  {foreach $crumbs as $crumb}
				  <li> &gt;
					{if $crumb@last}
					{$crumb.name}
					{else}
					<a href="{$crumb.path}">{$crumb.name}</a>
					{/if}
				  </li>
				  {/foreach}
				</ul>
			  </div>

			  <div id="twocolumns">
				<div id="content">
				  {include "$tpl"}
				</div>

				<div class="aside">
				  <a href="#" class="top_banner"></a>
				  <!--div class="box">
					<div class="box-holder">
					  <div class="box-frame">
						<ul class="menu">
						  <li><a href="#">Dona Jerdona</a></li>
						  <li><a href="#">Lili Cosmetics</a></li>
						  <li><a href="#">Обучающий центр</a></li>
						</ul>
					  </div>
					</div>
				  </div-->
				  {include 'components/small_banners.tpl' id=2 banners=$banners1}
				  {include 'components/small_banners.tpl' id=3 banners=$banners2}
				  {include 'components/small_banners.tpl' id=4 banners=$banners3}
				  {include 'components/small_banners.tpl' id=5 banners=$banners4}
				  {include 'components/small_banners.tpl' id=6 banners=$banners5}
				  {include 'components/small_banners.tpl' id=7 banners=$banners6}
				</div>
			  </div>

			  <div id="sidebar">
				{if $leftMenuTpl|default:false}
				<div class="navbar">
				  {include "$leftMenuTpl.tpl"}
				</div>
				{/if}
				<div class="block">
				  <div class="block-holder">
					<div class="block-frame">
					  <ul>
						<li><a href="/catalog">Список всех товаров</a></li>
					  </ul>
					</div>
				  </div>
				</div>
				<div class="promobox">
				  {if $promo|default:0}
				  <a href="{$promo.link|default:'#'}"><img src="/{$promo.image}" alt="{$promo.name|escape}" title="{$promo.name|escape}" class="png" /></a>
				  {/if}
				</div>
			  </div>
			</div>
			<div id="footer">
			  <div class="footer-holder">
				<div class="footer-box">
				  <h2>Новости</h2>
				  <ul class="news-list">
					{foreach $latestNews as $n}
					<li>
					  <em class="date">{$n.dt}</em>
					  <span>{$n.short_txt}</span><br />
					  <a href="/news/{$n.id}" class="more">далее &gt;</a>
					</li>
					{/foreach}
				  </ul>
				  <h2>Выставки</h2>
				  <em class="date">{$latestExpo.dt}</em>
				  <a href="/exhibitions/{$latestExpo.id}" style='color:white;'>{$latestExpo.short_txt}</a>
				</div>
				<ul class="navigation">
				  <li>
					<h2>Галерея</h2>
					<ul>
					  {include 'top_albums.tpl'}
					</ul>
				  </li>
				  {*
				  <li>
					<h2>Форум</h2>
					<ul>
					  <li><a href="/forum/viewforum.php?f=3">Ногтевой сервис</a></li>
					  <li><a href="/forum/viewforum.php?f=4">Наращивание ресниц</a></li>
					  <li><a href="/forum/viewforum.php?f=5">Парикмахерское искусство</a></li>
					  <li><a href="/forum/viewforum.php?f=6">Наращивание волос</a></li>
					  <li><a href="/forum/viewforum.php?f=7">Визаж</a></li>
					  <li><a href="/forum/viewforum.php?f=8">Обучение</a></li>
					</ul>
				  </li>
				  *}
				  <li>
					<h2>Предложения</h2>
					<ul>
					  <li><a href="/giftcards">Дисконтные карты</a></li>
					  <li><a href="/dealers">Для оптовых покупателей</a></li>
					  <li><a href="/wholesale">Оптовикам</a></li>
					  <li><a href="/to_cooperation">К сотрудничеству</a></li>
					  <li><a href="/suggestions">Ваши предложения</a></li>
					  <li><a href="/reviews">Отзывы</a></li>
					</ul>
				  </li>
				</ul>
			  </div>
			  <div class="footer-frame">
				<dl class="seadesing">
				  <dt>Создание сайта</dt>
				  <dd><a href="http://www.seadesign.ru">SeaDesing</a></dd>
				</dl>
			  </div>
			</div>
		  </div>
		</div>
	  </div>
	</div>

	<!--LiveInternet counter--><script type="text/javascript"><!--
	document.write("<a href='http://www.liveinternet.ru/click' "+
	"target=_blank><img src='//counter.yadro.ru/hit?t23.8;r"+
	escape(document.referrer)+((typeof(screen)=="undefined")?"":
	";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
	screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
	";"+Math.random()+
	"' alt='' title='LiveInternet: показано число посетителей за"+
	" сегодня' "+
	"border='0' width='88' height='15'><\/a>")
	//--></script><!--/LiveInternet-->
<a href="/partners.php"></a>
	{literal}
	<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (d, w, c) {
    (w[c] = w[c] || []).push(function() {
        try {
            w.yaCounter20724667 = new Ya.Metrika({id:20724667,
                    webvisor:true,
                    clickmap:true,
                    trackLinks:true,
                    accurateTrackBounce:true});
        } catch(e) { }
    });

    var n = d.getElementsByTagName("script")[0],
        s = d.createElement("script"),
        f = function () { n.parentNode.insertBefore(s, n); };
    s.type = "text/javascript";
    s.async = true;
    s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";

    if (w.opera == "[object Opera]") {
        d.addEventListener("DOMContentLoaded", f, false);
    } else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script>
<noscript><div><img src="//mc.yandex.ru/watch/20724667" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
	{/literal}
  </body>
</html>
